package io.gitee.devaper.starlight.common.config

import io.gitee.devaper.starlight.common.holder.*
import com.fasterxml.jackson.databind.ObjectMapper
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Configuration

/**
 * 所有Holder类的初始化器
 *
 * @see Holder
 */
@Configuration(proxyBeanMethods = false)
open class HolderInitializer {

    @Autowired
    open fun initObjectMapperHolder(objectMapper: ObjectMapper) {
        ObjectMapperHolder.init(objectMapper)
    }

}